<!-- ADDTHIS BUTTON BEGIN -->
<script type="text/javascript">
var addthis_config = {
     pubid: "<?php echo $this->publisherId ?>",
     ui_click : true,
     url : '<?php echo CHtml::encode(Yii::app()->request->HostInfo . Yii::app()->request->requestUri); ?>'
};
</script>

<a href="http://www.addthis.com/bookmark.php?v=250" 
    class="addthis_button<?php echo ($this->linkCssClass != '' ? ' '.$this->linkCssClass : '') ?>">
    <?php if (!empty($this->buttonImage)) : ?>    
        <img src="<?php echo $this->buttonImage; ?>" border="0" alt="Share" />
    <?php endif; ?>
    <?php if (!empty($this->buttonText)) : ?>    
        <span><?php echo $this->buttonText; ?></span>
    <?php endif; ?>
</a>

<?php 
cs()->registerScriptFile('http://s7.addthis.com/js/250/addthis_widget.js',CClientScript::POS_BEGIN);
?>
<!-- ADDTHIS BUTTON END -->